-
Notifications
You must be signed in to change notification settings - Fork 18
Recover rule by rule recertification #3882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: importer-rework
Are you sure you want to change the base?
Recover rule by rule recertification #3882
Conversation
|
tpurschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| SELECT INTO t_rule_created rule_metadata.rule_created | ||
| FROM rule | ||
| LEFT JOIN rule_metadata ON (rule.rule_uid=rule_metadata.rule_uid AND rule.dev_id=rule_metadata.dev_id) | ||
| LEFT JOIN rule_metadata ON (rule.rule_uid=rule_metadata.rule_uid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
| delete_recertification( | ||
| where: { | ||
| owner_id: { _eq: $ownerId } | ||
| rule_metadatum: { device: { mgm_id: { _eq: $mgmId } } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
| FROM view_rule_with_owner | ||
| LEFT JOIN rule USING (rule_id) | ||
| LEFT JOIN rule_metadata ON (rule.rule_uid=rule_metadata.rule_uid AND rule.dev_id=rule_metadata.dev_id) | ||
| LEFT JOIN rule_metadata ON (rule.rule_uid=rule_metadata.rule_uid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
| FROM view_rule_with_owner | ||
| LEFT JOIN rule USING (rule_id) | ||
| LEFT JOIN rule_metadata ON (rule.rule_uid=rule_metadata.rule_uid AND rule.dev_id=rule_metadata.dev_id) | ||
| LEFT JOIN rule_metadata ON (rule.rule_uid=rule_metadata.rule_uid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
| view_rule_with_owner V | ||
| LEFT JOIN rule R USING (rule_id) | ||
| LEFT JOIN rule_metadata M ON (R.rule_uid=M.rule_uid AND R.dev_id=M.dev_id) | ||
| LEFT JOIN rule_metadata M ON (R.rule_uid=M.rule_uid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
| view_rule_with_owner V | ||
| LEFT JOIN rule R USING (rule_id) | ||
| LEFT JOIN rule_metadata M ON (R.rule_uid=M.rule_uid AND R.dev_id=M.dev_id) | ||
| LEFT JOIN rule_metadata M ON (R.rule_uid=M.rule_uid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
|
|
||
| [JsonProperty("dev_id"), JsonPropertyName("dev_id")] | ||
| public int DeviceId { get; set; } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we need to add mgm_id here (when #3885 is merged).
I would also say we should merge #3885 first, since #3882 seems to depend on those changes. |
|
Throwing my 2 cents into the ring: I am kinda dependant on parts of #3882 being merged in so whichever way merges that in sooner rather than later would be awesome :) |



No description provided.